package com.pxxy.springboot.controller;

import com.pxxy.springboot.entity.CustomProp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/******************
 * @Author yejf
 * @Description TODO
 */
@RestController
public class HelloController {

    @Autowired
    private CustomProp prop;

    @RequestMapping("/hello")
    public String helloSpringBoot() {
        return "Hello,Spring Boot!";
    }

    @RequestMapping(value = "/prop",produces = "application/json;charset=utf-8")
    public CustomProp prop() {
        return prop;
    }
}
